package com.catering.service.impl.impl;

import com.catering.mapper.InventoryMapper;
import com.catering.service.InventoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class InventoryServiceImpl implements InventoryService {

    @Resource
    private InventoryMapper inventoryMapper;

    @Override
    public void reduceInventory(String dishName) {
        inventoryMapper.reduceInventory(dishName);

    }
}
